package com.moneywelcome.atomloanfacade.api;

import com.moneywelcome.atomloanfacade.info.InstalmentRuleInfo;
import com.moneywelcome.results.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "atom-loan",contextId = "InstalmentRuleApi")
public interface InstalmentRuleApi {
    @GetMapping("rules/{loanProductId}")
    Result<List<InstalmentRuleInfo>> getRulesByProduct(@PathVariable("loanProductId") Integer loanProductId);

}
